<section data-ng-controller="SessionsController"  data-ng-init="find()">
	<div class="page-header">
		<h1>Sessions <a href="/#!/sessions/create" class="btn btn-success pull-right" >Create New Session</a></h1>

	</div>
	<div class="list-group">
		<a data-ng-repeat="session in sessions" data-ng-href="#!/sessions/{{session._id}}" class="list-group-item">
			<h4 class="list-group-item-heading" data-ng-bind="session.title"></h4>

			<small class="list-group-item-text">
				<span data-ng-if="session.presentersToShow">
					by <span data-ng-bind="session.presentersToShow">
				</span>
				</span>
				Scheduled on
				<span data-ng-bind="session.scheduledOn | date:'mediumDate'"></span>

			</small>

			<p class="list-group-item-text" data-ng-bind="session.content"></p>
		</a>
	</div>
	<div class="alert alert-warning text-center" data-ng-if="sessions.$resolved && !sessions.length">
		No articles yet, why don't you <a href="/#!/sessions/create">create one</a>?
	</div>
</section>
